From 42a6ae6c6c54ddf2f1c0836ed2e67180c0617c0a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 20 Dec 2014 20:39:31 +0100 Subject: [PATCH] widget: Set the allocation via gtk_widget_set_allocation() There is no good reason to assign the value directly. Also, this fixes d23f3254b7fcef0fc57739ce5cd548742870b119 where widgets that chained up instead of calling gtk_widget_set_allocation() would not draw becaues of empty clip. --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 6794e9e54f..6962bb598a 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -6348,7 +6348,7 @@ gtk_widget_real_size_allocate (GtkWidget *widget, { GtkWidgetPrivate *priv = widget->priv; - priv->allocation = *allocation; + gtk_widget_set_allocation (widget, allocation); if (gtk_widget_get_realized (widget) && gtk_widget_get_has_window (widget)) -- 2.30.2